home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
aapain1a
/
toolbar.frm
< prev
Wrap
Text File
|
1998-10-10
|
6KB
|
227 lines
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form2
BorderStyle = 4 'Fixed ToolWindow
Caption = "Tools"
ClientHeight = 7170
ClientLeft = 45
ClientTop = 285
ClientWidth = 930
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7170
ScaleWidth = 930
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.Timer Timer1
Interval = 1000
Left = 480
Top = 6360
End
Begin VB.TextBox Text3
Height = 285
Left = 0
TabIndex = 12
Text = "1"
ToolTipText = "To Change, type in a new number!"
Top = 3600
Width = 375
End
Begin VB.CommandButton Command3
Caption = "Large"
Height = 255
Left = 23
TabIndex = 6
Top = 3000
Width = 855
End
Begin VB.CommandButton Command6
Caption = "Medium"
Height = 255
Left = 23
TabIndex = 11
Top = 2760
Width = 855
End
Begin VB.CommandButton Command5
Caption = "Small"
Height = 255
Left = 23
TabIndex = 10
Top = 2520
Width = 855
End
Begin VB.CommandButton Command4
Caption = "Large"
Height = 255
Left = 23
TabIndex = 9
Top = 1920
Width = 855
End
Begin VB.CommandButton Command2
Caption = "Medium"
Height = 255
Left = 23
TabIndex = 5
Top = 1680
Width = 855
End
Begin VB.CommandButton Command1
Caption = "Small"
Height = 255
Left = 23
TabIndex = 4
Top = 1440
Width = 855
End
Begin VB.TextBox Text2
Height = 285
Left = 23
MousePointer = 1 'Arrow
TabIndex = 2
ToolTipText = "Click to change back color!"
Top = 840
Width = 855
End
Begin MSComDlg.CommonDialog CommonDialog1
Left = 0
Top = 6360
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.TextBox Text1
Height = 285
Left = 23
MousePointer = 1 'Arrow
TabIndex = 0
ToolTipText = "Click to change fore color!"
Top = 240
Width = 855
End
Begin VB.Label Label6
Caption = "Info"
Height = 2175
Left = 45
TabIndex = 14
Top = 3960
Width = 855
End
Begin VB.Label Label5
Caption = "Draw Width"
Height = 255
Left = 0
TabIndex = 13
Top = 3360
Width = 855
End
Begin VB.Label Label4
Caption = "Star Brush"
Height = 255
Left = 0
TabIndex = 8
Top = 2280
Width = 855
End
Begin VB.Label Label3
Caption = "Block Brush"
Height = 255
Left = 23
TabIndex = 7
Top = 1200
Width = 975
End
Begin VB.Label Label2
Caption = "Back Color"
Height = 255
Left = 23
TabIndex = 3
Top = 600
Width = 975
End
Begin VB.Label Label1
Caption = "Fore Color"
Height = 255
Left = 23
TabIndex = 1
Top = 0
Width = 735
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Paint v1.0 - toolbar
'Author: Dustin Davis
'Bootleg Software Inc.
'
'This is the toolbar for paint! Nothing fancy, very simple
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Private Sub Command1_Click()
'set brush to small block
Form1.pBrush = 1
End Sub
Private Sub Command2_Click()
'set brush to medium block
Form1.pBrush = 2
End Sub
Private Sub Command3_Click()
'set brush to large star
Form1.pBrush = 6
End Sub
Private Sub Command4_Click()
'set brush to large block
Form1.pBrush = 3
End Sub
Private Sub Command5_Click()
'set brush to small star
Form1.pBrush = 4
End Sub
Private Sub Command6_Click()
'set brush to medium star
Form1.pBrush = 5
End Sub
Private Sub Form_Load()
'get settings
Me.Top = Form1.Top
Me.Left = Form1.Left - Me.Width
Text1.BackColor = Form1.pColor
Text2.BackColor = Form1.BackColor
End Sub
Private Sub Text1_Click()
'changes paint color
CommonDialog1.ShowColor
Form1.pColor = CommonDialog1.Color
Text1.BackColor = CommonDialog1.Color
End Sub
Private Sub Text2_Click()
'changes back color
CommonDialog1.ShowColor
Form1.bColor = CommonDialog1.Color
Text2.BackColor = CommonDialog1.Color
Form1.BackColor = CommonDialog1.Color
End Sub
Private Sub Text3_Change()
'changes draw width
Form1.DrawWidth = Text3.Text
End Sub
Private Sub Timer1_Timer()
'give info on brush stuff
Label6.Caption = "Info" & vbCrLf & "Brush: " & Form1.pBrush & vbCrLf & "Width: " & Form1.DrawWidth & vbCrLf & "Left click to Draw" & vbCrLf & "Right click to erase"
End Sub